﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace LevelEditor.Document
{
    [Serializable]
    public class Level
    {
        #region Properties

        /// <summary>
        /// Name of this level.
        /// </summary>
        [XmlAttribute]
        public string Name { get; set; }

        /// <summary>
        /// User defined data for this level.
        /// </summary>
        [XmlIgnore]
        public SortedList<string, string> CustomData { get; set; }

        /// <summary>
        /// List of layers in this level.
        /// </summary>
        public List<Layer> Layers { get; set; }

        #endregion

        #region Constructors
        
        public Level()
        {
            Name = "Untitled";
            Layers = new List<Layer>();
            CustomData = new SortedList<string, string>();
        }
        
        #endregion

    }
}
